home *** CD-ROM | disk | FTP | other *** search
- /* ftime.c Turbo C Bible Functions, p. 332. */
- #include <stdio.h>
- #include <\tc\include\sys\types.h>
- #include <\tc\include\sys\timeb.h>
- #include <time.h>
- main()
- {
- struct timeb time_buffer;
- char *date_time;
- ftime(&time_buffer);
- /* Use "ftime" to get current time into time_buffer */
- printf("Time = %s", ctime(&time_buffer.time));
- /* Convert "time" field to a string and print it */
- }